package com.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chl
 * @since 2021-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TTreeNode extends Model<TTreeNode> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "tree_id", type = IdType.ASSIGN_ID)
    private Long treeId;

    private String name;

    private Integer age;

    private String address;


    @Override
    protected Serializable pkVal() {
        return this.treeId;
    }

}
